<template>
  <div class="auth-layout page-container">
    <div class="auth-content">
      <router-view v-slot="{ Component }">
        <transition name="fade" mode="out-in">
          <component :is="Component" />
        </transition>
      </router-view>
    </div>
  </div>
</template>

<script setup lang="ts">
import { useRouter, useRoute } from 'vue-router'

const router = useRouter()
const route = useRoute()

const onClickLeft = () => {
  router.back()
}
</script>

<style lang="scss" scoped>
.auth-layout {
  height: 100vh;
  overflow: auto;
  background: linear-gradient(to bottom, #F8E6FF, #F0E6FF);
  display: flex;
  flex-direction: column;

  .auth-content {
    // padding: $spacing-lg;
    flex: 1;
  }
}

.fade-enter-active,
.fade-leave-active {
  transition: opacity 0.3s ease;
}

.fade-enter-from,
.fade-leave-to {
  opacity: 0;
}
</style>